from selenium.webdriver.common.by import By

from base import Base
class Page(Base):
    def sou(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().text("搜索菜谱")')
        ele=self.find_ele(loc)
        return ele
    def sou2(self):
        loc=(By.CLASS_NAME,'android.widget.EditText')
        ele=self.find_ele(loc)
        return ele
    def souan(self):
        loc=(By.XPATH,'//android.widget.TextView[@text="搜索"]')
        ele=self.find_ele(loc)
        return ele
    def duanyan(self):
        loc=(By.XPATH,'//android.widget.TextView[@text="综合"]')
        ele=self.find_ele(loc)
        return ele
